package com.tiro.springboot.sample.common;

/**
 * @author long.qul
 * @date 23/01/2018
 */
public enum UserStatus implements GenericEnum {

    NORMAL(1, "正常"), SUSPENDED(0, "停用");

    private int code;
    private String label;

    UserStatus(int code, String label) {
        this.code = code;
        this.label = label;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
